package com.mall.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品信息对象 t_product
 *
 * @author ruoyi
 * @date 2025-03-29
 */
@Data
@TableName(value = "t_product")
@EqualsAndHashCode(callSuper = true)
public class TProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "标题"
     */
    @Excel(name = "标题")
    private String title;
    /**
     * "编号"
     */
    @Excel(name = "编号")
    private String productNo;


    /**
     * "封面图片"
     */
    @Excel(name = "封面图片")
    private String image;
    /**
     * "轮播图片"
     */
    @Excel(name = "轮播图片")
    private String lbImage;
    /**
     * "类型 "
     */
    @Excel(name = "类型 ")
    private String type;

    /**
     * "商品类型"
     */
    private String spLx;

    /**
     * "简介"
     */
    @Excel(name = "简介")
    private String info;
    /**
     * "详细描述"
     */
    @Excel(name = "详细描述")
    private String detail;
    /**
     * "使用说明"
     */
    @Excel(name = "使用说明")
    private String sysm;
    /**
     * "原价"
     */
    @Excel(name = "原价")
    private BigDecimal ylPrice;

    /**
     * "库存"
     */
    @Excel(name = "库存")
    private Long stock;





    /**
     * "是否限购"
     */
    @Excel(name = "是否限购")
    private String isXg;


    /**
     * "限购件数"
     */
    @Excel(name = "限购件数")
    private Integer xgNum;



    /**
     * "限购天数"
     */
    @Excel(name = "限购天数")
    private Integer xgDay;






    /**
     * "是否热门推荐"
     */
    @Excel(name = "是否热门推荐")
    private String isRm;
    /**
     * "是否上架"
     */
    @Excel(name = "是否上架")
    private String isSj;



    /**
     * "上架时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sjDate;
    /**
     * "下架时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date xjDate;

    /**
     * "分类名称"
     */
    @TableField(exist = false)
    private String typeName;



    /**
     * "会员价"
     */
    @TableField(exist = false)
    private BigDecimal vipPrice;

    /**
     * "当前用户Id"
     */
    @TableField(exist = false)
    private String currUserId;

    /**
     * "排序方式"
     */
    @TableField(exist = false)
    private String orderType;

    /**
     * "销量"
     */
    @TableField(exist = false)
    private String orderCount;



    /**
     * "积分最小值"
     */
    @TableField(exist = false)
    private String priceMin;



    /**
     * "积分最大值"
     */
    @TableField(exist = false)
    private String priceMax;










}
